package com.ruoyi.admin.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 ml_order
 * 
 * @author ruoyi
 * @date 2025-03-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="ml_order")
public class MlOrderDto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    @TableField(value = "id")
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderCode;

    /** 用户ID */
    private Long userId;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal totalMoney;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 订单状态 0:已支付 1:已发货 2:已完成 */
    @Excel(name = "订单状态 0:已支付 1:已发货 2:已完成")
    private Long orderStatus;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;
    @TableField(exist = false)
    private List<MlGoodsDto> mlGoodsDtoList;
}
